import java.util.Scanner;
class User{
    private String userName;
    private String passWord;

    public User(){}

    public User(String userName){
        this.userName =userName;
    }
    public User(String userName, String passWord) {
        this.userName = userName;
        this.passWord = passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }
    public String getPassWord(){
        return passWord;
    }

    public String show(){
        if(passWord == null){
            return "用户： "+userName;
        }else {
            return "用户： "+userName+",口令是： "+passWord;
        }
    }
}

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextLine()){
            String line = sc.nextLine();
            if(line.startsWith("U")){
                String user = line.split(" ")[1];
                User user1 = new User(user);
                System.out.println(user1.show());
            }else if (line.startsWith("O")){
                String username = line.split(" ")[1];
                String passWord = line.split(" ")[2];
                User passWord1 = new User(username,passWord);
                System.out.println(passWord1.show());
            }
        }
    }
}
